<template>
  <div class="home">
    <!-- 筛选 -->
    <div class="search_content">
      <van-nav-bar
        :title="$route.meta.title"
        left-text="返回"
        left-arrow
        @click-left="$router.go(-1)"
      />
      <van-search
        v-model="requestParams.customerOrCarModel"
        placeholder="请输入客户名称或意向车型"
        shape="round"
        @search="initData"
        @clear="clearSearch"
      />
      <div class="search_item">
        <van-dropdown-menu :close-on-click-outside="false">
          <van-dropdown-item title="线索生成时间" ref="statusRef">
            <div class="searchbox">
              <div class="flex">
                <van-field
                  class="time_item"
                  v-model="requestParams.leadsStartDate"
                  label
                  :placeholder="'开始时间'"
                  input-align="right"
                  readonly
                  @click="handleSelectTime('leadsStartDate')"
                />
                至
                <van-field
                  class="time_item"
                  v-model="requestParams.leadsEndDate"
                  label
                  :placeholder="'结束时间'"
                  input-align="right"
                  readonly
                  @click="handleSelectTime('leadsEndDate')"
                />
              </div>

              <div class="insureBtn">
                <van-button
                  size="small"
                  type="warning"
                  class="resetBtn"
                  @click="handleSearchReset()"
                >
                  重置
                </van-button>
                <van-button
                  size="small"
                  type="info"
                  class="confirmBtn"
                  @click="onConfirm('statusRef')"
                >
                  确认
                </van-button>
              </div>
            </div>
          </van-dropdown-item>

          <van-dropdown-item title="线索状态" ref="taskTypeRef">
            <div class="searchbox">
              <div class="insureList">
                <div
                  class="insure_item"
                  :class="item.check ? 'active' : ''"
                  v-for="(item, index) in salesLeadsStateTypeList"
                  :key="index"
                  @click="handleSearchSelect(index, 'salesLeadsStateTypeList')"
                >
                  {{ item.name }}
                </div>
              </div>
              <div class="insureBtn">
                <van-button
                  size="small"
                  type="warning"
                  class="resetBtn"
                  @click="handleSearchReset()"
                >
                  重置
                </van-button>
                <van-button
                  size="small"
                  type="info"
                  class="confirmBtn"
                  @click="onConfirm('taskTypeRef')"
                >
                  确认
                </van-button>
              </div>
            </div>
          </van-dropdown-item>

          <van-dropdown-item title="筛选" ref="filterRef">
            <div class="searchbox timebox">
              <van-field
                v-model="requestParams.showOrgName"
                name="所属展厅"
                label="所属展厅"
                input-align="right"
                placeholder="请选择"
                readonly
                right-icon="arrow"
                @click="handleSelect('showOrgId', 'showOrgName')"
              />
              <van-field
                v-model="requestParams.webTypeName"
                name="线索来源"
                label="线索来源"
                input-align="right"
                placeholder="请选择"
                readonly
                right-icon="arrow"
                @click="handleSelect('webType', 'webTypeName')"
              />

              <div class="title">是否生成客户档案</div>
              <div class="insureList">
                <div
                  class="insure_item"
                  :class="index == delayIndex ? 'active' : ''"
                  v-for="(item, index) in delayList"
                  :key="index"
                  @click="
                    handleIsSelect(index, 'delayIndex', 'delayList', 'isAddCus')
                  "
                >
                  {{ item.name }}
                </div>
              </div>

              <van-field
                v-model="requestParams.accountName"
                name="分配销售顾问"
                label="分配销售顾问"
                input-align="right"
                placeholder="请输入分配销售顾问"
              />

              <div class="insureBtn">
                <van-button
                  size="small"
                  type="warning"
                  class="resetBtn"
                  @click="handleAccidentReset()"
                >
                  重置
                </van-button>
                <van-button
                  size="small"
                  type="info"
                  class="confirmBtn"
                  @click="onConfirm('filterRef')"
                >
                  确认
                </van-button>
              </div>
            </div>
          </van-dropdown-item>
        </van-dropdown-menu>

        <!-- 服务顾问下拉 -->
        <van-popup v-model="showSelectPicker" position="bottom">
          <van-picker
            show-toolbar
            :columns="columns"
            @confirm="handleSelectConfirm"
            @cancel="showSelectPicker = false"
            value-key="name"
          />
        </van-popup>
        <!-- 时间选择 -->
        <van-popup v-model="showPickerDate" position="bottom">
          <van-datetime-picker
            v-model="currentDate"
            type="date"
            @cancel="onCancelDate"
            @confirm="onConfirmDate"
            :formatter="formatter"
          />
        </van-popup>
      </div>
    </div>

    <!-- 列表 -->
    <van-pull-refresh v-model="refreshing" @refresh="onRefresh">
      <van-list
        v-model="loading"
        :finished="finished"
        finished-text="没有更多了"
        @load="loadData"
        v-if="recordList && recordList.length != 0"
      >
        <div class="orderList">
          <div class="flex" v-for="(item, index) in recordList" :key="index">
            <div class="taskCheck" v-if="showTransmitFlag">
              <van-checkbox
                v-model="item.check"
                shape="square"
                icon-size="15px"
              ></van-checkbox>
            </div>
            <div class="orderItem">
              <div class="orderItem_header">
                <div class="orderItem_lt" @click="goDetail(item)">
                  <div class="carNo">{{ item.customerName }}</div>
                  <!-- <div class="carStatus" v-if="item.isAddCus == 1">
                    {{ "已生成客户档案" }}
                  </div> -->
                  <i
                    @click.stop="handleTel(item.phone)"
                    class="iconfont icon-tel"
                  ></i>
                </div>
              </div>
              <div class="orderItem_content" @click="goDetail(item)">
                <div class="orderItem_data time">
                  <div class="order_label">意向车型：</div>
                  <div class="txt">
                    {{ item.yxCarModel ? item.yxCarModel : "-" }}
                  </div>
                </div>
                <div class="orderItem_data">
                  <div class="order_label">商机来源：</div>
                  <div class="txt">
                    {{ item.webType.alias ? item.webType.alias : "-" }}
                  </div>
                </div>
                <div class="orderItem_data time">
                  <div class="order_label">线索生成时间：</div>
                  <div class="txt">
                    {{ item.createTime ? item.createTime : "-" }}
                  </div>
                </div>
                <div class="orderItem_data time">
                  <div class="order_label">省份城市：</div>
                  <div class="txt">
                    {{ item.provinceCity ? item.provinceCity : "-" }}
                  </div>
                </div>
                <div class="orderItem_data time">
                  <div class="order_label">首次处理时间：</div>
                  <div class="txt">
                    {{ item.firstDealTime ? item.firstDealTime : "-" }}
                  </div>
                </div>
                <div class="orderItem_data time">
                  <div class="order_label">是否生成客户档案：</div>
                  <div class="txt">
                    {{ item.isAddCus == 1 ? "是" : "否" }}
                  </div>
                </div>
              </div>
              <div class="orderItem_state" v-if="item.stateName">
                <div class="stateName">{{ item.stateName }}</div>
              </div>
            </div>
          </div>
        </div>
      </van-list>
      <van-empty class="noContent" description="暂无数据" v-else />
    </van-pull-refresh>

    <div class="addBtn">
      <div class="footerBtn orderItem_filebox" @click="addSalesLeads">
        新增销售线索
      </div>
    </div>
  </div>
</template>

<script>
import Vue from "vue";
import {
  Search,
  DropdownMenu,
  DropdownItem,
  Empty,
  Dialog,
  List,
  Toast,
} from "vant";
import taskApi from "@/api/taskApi";
import commonApi from "@/api/commonApi";
import sellManageApi from "@/api/sellManageApi";
import { getCookies, isPhone } from "@/utils/util.js";

export default {
  name: "repairOrder",
  components: {
    Search,
    DropdownMenu,
    DropdownItem,
    Empty,
    Dialog,
    Toast,
  },
  data() {
    return {
      webType: "", // 线索来源
      value: "",
      carCouponList: [
        { name: "是", code: 1, check: false },
        { name: "否", code: 0, check: false },
      ],
      firstStatusList: [
        { name: "已处理", code: 1, check: false },
        { name: "未处理", code: 2, check: false },
      ],
      secondStatusList: [
        { name: "持续跟进", code: 1, check: false },
        { name: "本次战败", code: 2, check: false },
        { name: "邀约成功", code: 3, check: false },
      ],
      salesLeadsStateTypeList: [
        {
          name: "有效",
          code: 1,
          check: false,
        },
        {
          name: "无效",
          code: 1,
          check: false,
        },
        {
          name: "暂败",
          code: 1,
          check: false,
        },
      ],
      statusList: [
        { name: "已处理", code: 1, check: false },
        { name: "未处理", code: 2, check: false },
      ],

      recordList: [
        // {
        //   billId: '123123', //单据ID
        //   customerName: '客户名称', //客户名称
        //   phone: '151515151515', //电话
        //   isAddCus: '已生成客户档案', // 是否生成客户档案
        //   stateName: '有效', //线索状态
        //   firstDealTime: '2023/07/19', // 首次处理时间
        //   webType: '懂车帝', //线索来源
        //   provinceCity: '福建厦门', //省份城市
        //   yxCarModel: '奥迪 A3 2023kuan  1.4T双离合.....', //意向车型
        //   createTime: '2023/07/19', //创建日期
        // },
      ],
      columns: [],
      showSelectPicker: false,
      requestParams: {
        method: "getSalesLeadsList",
        pageNo: 1, //当前页数，默认从1开始，每页显示十条，int，不能为空或者小于1
        userId: getCookies("userId"), //用户ID，必填，String
        method: "getSalesLeadsList", //固定值
        customerOrCarModel: "", //客户名称或意向车型，String
        leadsStartDate: "", //线索生成开始时间，String
        leadsEndDate: "", //线索生成结束时间，String
        clusState: "", //线索状态，String
        showOrgId: "", //所属展厅ID，String
        webType: "", //线索来源，String
        isAddCus: "", //是否生成客户档案，String
        accountName: "", //分配销售顾问，String
      },
      carCouponIndex: null,

      repairCenterList: [
        { name: "厦门路虎", code: 1 },
        { name: "厦门捷豹", code: 2 },
      ],
      serviceList: [
        { name: "黄某某", code: 1 },
        { name: "张某某", code: 2 },
      ],
      delayList: [
        { name: "是", billId: 1, check: false },
        { name: "否", billId: 0, check: false },
      ],
      creatList: [
        { name: "是", billId: 1, check: false },
        { name: "否", billId: 0, check: false },
      ],
      defeatList: [
        { name: "是", billId: 1, check: false },
        { name: "否", billId: 0, check: false },
      ],

      delayIndex: null,
      creatIndex: null,
      defeatIndex: null,
      showTransmitFlag: false,
      timeField: "",
      showPickerDate: false,
      currentDate: new Date(),
      list: [],
      // 分页参数
      loading: false,
      finished: false,
      refreshing: false,
      isLoadData: false,
      field: "",
      fieldName: "",
      fixCenterList: [],
      leadsSourceList: [],
    };
  },

  mounted() {
    // this.getTaskType();
    // this.getMainFixCentel();
    this.getStateName();
    this.getLeadsSource();
    this.initData();
  },

  methods: {
    clearSearch() {
      this.requestParams.customerOrCarModel = "";
      this.initData();
    },

    // 获取线索来源 词典
    getLeadsSource() {
      commonApi
        .getEnums({
          key: "salesWebTypeEnum",
          userId: this.requestParams.userId,
        })
        .then((res) => {
          if (res.data) {
            this.leadsSourceList = this.formatCheckData(res.data);
          }
        });
    },
    // 获取线索状态 词典
    getStateName() {
      sellManageApi
        .getEnums({ key: "salesLeadsState", userId: getCookies("userId") })
        .then((res) => {
          if (res.data) {
            this.salesLeadsStateTypeList = res.data;
          }
        });
    },
    // 初始化列表
    initData() {
      this.requestParams.pageNo = 1;
      this.loadData();
    },
    // 根据用户获取对应展厅
    getShowOrgByUser() {
      let userId = getCookies("userId");
      sellManageApi
        .secondHandCarFacade({
          method: "getShowOrgByUser", //固定值
          orgKey: "showOrg", // orgkey
          userId: userId, //用户ID，必填，String
        })
        .then((res) => {
          if (res.data) {
            this.fixCenterList = res.data;
          }
        });
    },
    // 获取维修中心
    getMainFixCenter() {
      commonApi
        .getMainFixCenter({
          orgId: "test",
          userId: this.userId,
          type: "fixCenter",
        })
        .then((res) => {
          if (res.data) {
            this.fixCenterList = res.data;
          }
        });
    },
    // 获取列表
    loadData() {
      if (this.isLoadData) return;
      this.isLoadData = true;
      this.loading = true;
      this.finished = false;
      // console.log(this.isLoadData);
      sellManageApi
        .secondHandCarFacade({ ...this.requestParams })
        .then((res) => {
          if (this.requestParams.pageNo == 1) {
            if (res.data && res.data.length >= 1) {
              this.recordList = res.data;
            }
          } else {
            if (res.data && res.data.length >= 1) {
              this.recordList = this.recordList.concat(res.data || []);
            }
          }
          this.requestParams.pageNo += 1;

          if (res.data.length < 10) {
            this.finished = true;
            this.isLoadData = true;
          }
          this.isLoadData = false;
          this.loading = false;
          this.getShowOrgByUser();
          // this.getMainFixCenter()
        });
    },
    // 下拉刷新
    onRefresh() {
      // 清空列表数据
      this.recordList = [];
      this.finished = false;
      // 重新加载数据
      // 将 loading 设置为 true，表示处于加载状态
      this.loading = true;
      this.refreshing = false;
      this.initData();
    },
    // 获取任务类型
    getTaskType() {
      commonApi
        .getTaskType({ userId: this.requestParams.userId })
        .then((res) => {
          this.salesLeadsStateTypeList = this.formatCheckData(res.data);
        });
    },
    // 获取维修中心
    getMainFixCentel() {
      commonApi
        .getMainFixCentel({ userId: this.requestParams.userId })
        .then((res) => {
          this.fixCenterList = res.data;
        });
    },
    // 获取服务顾问
    getEmpPerson() {
      commonApi
        .getEmpPerson({
          showOrgId: this.requestParams.showOrgId,
          userId: this.requestParams.userId,
        })
        .then((res) => {
          this.serviceList = res.data;
        });
    },

    // 格式化多选数据
    formatCheckData(data) {
      data.forEach((item) => {
        item.check = false;
      });
      return data;
    },

    // 选择下拉
    handleSelect(field, fieldName) {
      this.showSelectPicker = true;
      if (field == "carCoupon") {
        this.columns = [
          { name: "是", value: 1 },
          { name: "否", value: 2 },
        ];
      } else if (field == "outUser") {
        this.columns = [
          { name: "服务人员1", value: 1 },
          { name: "服务人员2", value: 2 },
        ];
      } else if (field == "showOrgId") {
        this.columns = this.fixCenterList;
      } else if (field == "webType") {
        this.columns = this.leadsSourceList;
      }
      this.field = field;
      this.fieldName = fieldName;
    },

    // 筛选是否
    handleCarSelect(index) {
      this.carCouponIndex = index;
    },
    // 筛选重置
    handleSelectReset() {
      this.requestParams.taskPersonId = "";
      this.requestParams.isGenRepBook = "";
    },

    // 选择下拉确认
    handleSelectConfirm(value, index) {
      this.requestParams[this.field] = value.billId;
      this.requestParams[this.fieldName] = value.name;
      if (this.field == "webType") {
        this.requestParams[this.field] = value.value;
      }
      if (this.field == "showOrgId") {
        // this.getEmpPerson()
      }
      this.showSelectPicker = false;
    },

    // 所属服务顾问重置
    handleReset() {
      this.requestParams.showOrgId = "";
      this.requestParams.outUser = "";
    },

    //时间重置
    handleAccidentReset() {
      this.creatIndex = null;
      this.defeatIndex = null;
      this.delayIndex = null;
      this.requestParams.isExceed = "";
      this.requestParams.isGenRepBook = "";
      this.requestParams.leadsStartDate = "";
      this.requestParams.leadsEndDate = "";
    },
    onConfirm(ref) {
      this.$refs[ref].toggle();
      if (ref == "taskTypeRef") {
        let checkList = [];
        this.salesLeadsStateTypeList.forEach((el) => {
          if (el.check) {
            checkList.push(el.value);
          }
          this.requestParams.clusState = checkList.join(",");
        });
      }
      if (ref == "filterRef") {
      }
      this.initData();
    },
    // 时间确认
    onConfirmDate() {
      this.requestParams[
        this.timeField
      ] = `${this.value1}-${this.value2}-${this.value3}`; // 字符串拼接 结果入2020-07-03
      this.onCancelDate();
    },
    onCancelDate() {
      this.showPickerDate = false;
    },

    // 日期组件自定义格式
    formatter(type, value) {
      if (type === "year") {
        this.value1 = value; // 可以拿到当前点击的数值
        return `${value}年`;
      } else if (type === "month") {
        this.value2 = value;
        return `${value}月`;
      }
      this.value3 = value;
      return `${value}日`;
    },

    // 获取list名称
    getFieldName(list, key, val) {
      if (list && list.length > 0) {
        let obj = list.filter((item) => {
          return item[key] == val;
        });
        if (obj.length > 0) {
          return obj[0].name;
        }
      }
      return null;
    },
    // 新增销售线索
    addSalesLeads() {
      this.$router.push({
        path: "/salesLeadsAdd",
      });
    },
    // 详情
    goDetail(data) {
      this.$router.push({
        path: "/salesLeadsDetails",
        query: { billId: data.billId },
      });
    },
    // 顶部筛选选择数据
    handleSearchSelect(index, listKey) {
      this[listKey][index].check = !this[listKey][index].check;
      this.$forceUpdate();
    },
    // 重置
    handleSearchReset() {
      this.firstStatusList.forEach((item) => {
        item.check = false;
      });
      this.secondStatusList.forEach((item) => {
        item.check = false;
      });
      this.salesLeadsStateTypeList.forEach((item) => {
        item.check = false;
      });
    },

    // 是否数据选择
    handleIsSelect(index, key, list, field) {
      this[key] = index;
      this.requestParams[field] = this[list][index].billId;
      this.$forceUpdate();
    },
    // 任务转交展示
    handleShowTransmit() {
      this.showTransmitFlag = true;
    },
    // 确认转交
    handleTransmitSubmit() {},
    // 取消
    handleTransmitCancel() {
      this.showTransmitFlag = false;
    },
    // 时间筛选
    handleSelectTime(field) {
      this.timeField = field;
      this.showPickerDate = true;
    },
    handleTel(tel) {
      if (isPhone()) {
        window.location.href = `tel:${tel}`;
      } else {
        Toast("请在手机端使用此功能");
      }
    },
  },
};
</script>

<style lang="less" scoped="">
body {
  background: #f3f3f3;
}
.search_content {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 2;
}
.timebox {
  /deep/.van-cell::after {
    border: none;
  }
  .time_item {
    /deep/.van-field__control--right {
      border: 1px solid #d1d1d1;
      padding: 0.1rem 0;
      text-align: center;
      border-radius: 3px;
    }
  }
}
.searchbox {
  padding: 0.3rem;
  .title {
    font-size: 0.3rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 0.2rem;
    padding-top: 0.2rem;
  }
  .insureList {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex-wrap: wrap;
    .insure_item {
      border: 1px solid #999;
      text-align: center;
      padding: 0.15rem 0rem;
      width: 30%;
      box-sizing: border-box;
      // margin-right: 0.1rem;
      font-size: 0.26rem;
      border-radius: 3px;
      color: #666;
      margin-bottom: 0.2rem;
      margin-right: 5%;
      &:nth-child(3n) {
        margin-right: 0;
      }
      &.active {
        border: 1px solid #f65e07;
        color: #f65e07;
      }
    }
  }
  .insureBtn {
    display: flex;
    justify-content: right;
    margin-top: 0.4rem;
    .resetBtn {
      padding: 0 0.4rem;
      margin-right: 0.2rem;
    }
    .confirmBtn {
      padding: 0 0.4rem;
    }
  }
}

.orderList {
  padding-top: 148px;
  margin: 0.2rem;
  overflow: hidden;
  // padding-bottom: 1.5rem;
  .taskCheck {
    margin-right: 0.1rem;
  }
  .orderItem {
    padding: 0.3rem;
    background: #fff;
    border-radius: 10px;
    margin-bottom: 0.3rem;
    width: 100%;
    .orderItem_header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 0.3rem;
      padding-bottom: 0.2rem;
      border-bottom: 1px solid rgba(244, 244, 244, 1);
      position: relative;
      .orderItem_lt {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: space-between;
        align-content: center;
        .icon-tel {
          background: #35bc04;
          color: #fff;
          border-radius: 50%;
          padding: 0.1rem;
        }
        .carNo {
          // left: 26px;
          // top: 202px;
          // width: 80px;
          // height: 25px;
          color: rgba(16, 16, 16, 1);
          font-size: 16px;
          text-align: left;
          font-family: SourceHanSansSC-medium;
        }

        .carStatus {
          background: #35bc04;
          color: #fff;
          border-radius: 4px;
          padding: 0.1rem 0.2rem;
          font-size: 0.24rem;
          text-align: center;
          width: 2rem;
          // margin-right: 2rem;
        }
      }
      .orderItem_rt {
        display: flex;
        align-items: center;
        align-self: center;
        justify-content: flex-start;
        color: #666;
        font-size: 0.28rem;

        .txt {
          color: rgba(147, 147, 147, 1);
          font-size: 14px;
          text-align: left;
          font-family: PingFangSC-regular;
        }
        .icon-tel {
          color: #fff;
          background: #35bc04;
          font-size: 0.32rem;
          padding: 0.1rem;
          border-radius: 50%;
          margin-right: 0.2rem;
        }
        .icon-wx {
          color: #409eff;
          font-size: 0.65rem;
        }
      }
    }
    .orderItem_content {
      display: flex;
      justify-content: flex-start;
      flex-wrap: wrap;
      align-items: center;
      border-bottom: 1px solid rgba(244, 244, 244, 1);
      .orderItem_data {
        display: flex;
        justify-content: flex-start;
        align-items: center;
        width: 50%;
        margin-bottom: 0.2rem;
        font-size: 0.28rem;
        box-sizing: content-box;
        color: #333;
        .order_label {
          font-size: 0.26rem;
          color: #333;
        }
        .txt {
          font-size: 0.28rem;
          color: #666;
          white-space: nowrap;
          overflow: hidden;
          text-overflow: ellipsis;
        }
        &.time {
          width: 100%;
        }
      }
    }
    .orderItem_state {
      width: 100%;
      height: 27px;
      text-align: right;
      position: relative;
      .stateName {
        // width: 63px;
        height: 22px;
        position: absolute;
        right: 0;
        top: 10px;
        text-align: center;
        line-height: 22px;
        border-radius: 3px;
        background-color: rgba(136, 207, 101, 1);
        color: rgba(255, 255, 255, 1);
        font-size: 12px;
        text-align: center;
        font-family: Arial;
        border: 1px solid rgba(136, 207, 101, 1);
        padding: 0 5px;
      }
    }
    .orderItem_file {
      background: #ebebeb;
      color: #333;
      border-radius: 5px;
      padding: 0.2rem 0;
      text-align: center;
      width: 100%;
      font-size: 0.28rem;
      display: flex;
      align-items: center;
      justify-content: center;
      .file_item {
        width: 33.33%;
        border-right: 1px solid #ccc;
        .icon-tel {
          font-size: 0.34rem;
          color: #35bc04;
          margin-right: 0.1rem;
        }
        .icon-mileage {
          font-size: 0.4rem;
          color: #409eff;
          margin-right: 0.1rem;
          position: relative;
          top: 0.04rem;
        }
        .icon-gw {
          font-size: 0.4rem;
          color: #409eff;
          margin-right: 0.1rem;
          position: relative;
          top: 0.04rem;
        }
        &:last-child {
          border: none;
        }
      }
    }
  }
}
.addBtn {
  position: fixed;
  bottom: 0.8rem;
  width: 100%;
  z-index: 1;
  .footerBtn {
    width: 2.8rem;
    margin: auto;
    text-align: center;
    font-size: 0.28rem;
    padding: 0.25rem 0rem;
    border-radius: 50px;
  }
  .orderItem_filebox {
    margin: auto;
    background: #409eff;
    color: #fff;
  }
  .comfirmBtn {
    background: #409eff;
    color: #fff;
  }
  .cancelBtn {
    border: 1px solid #ccc;
    color: #999;
    background: #fff;
  }
}
.noContent {
  margin-top: 2rem;
}
</style>
